<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        .box {
            width: 200px;
            height: 200px;
            margin: 300px auto;
            border: 1px solid #333;
            transition: all .6s;
            transform-origin: bottom;
        }

        .box img {
            width: 100%;
            height: 100%;
        }

        .box:hover {
            transform: rotate(45deg);
        }
    </style>
</head>

<body>
    <div class="box"><img src="./img/gAT.gif" alt=""></div>
</body>

</html>